<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo __('StudentTotaal.nl'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css(array('main', 'http://fonts.googleapis.com/css?family=Cuprum'));
        echo $this->Html->script(array('jquery-1.4.4.js', 'spinner/jquery.mousewheel.js', 'spinner/ui.spinner.js', 'jquery-ui.min.js'));
		echo $this->Html->script(array('fileManager/elfinder.min.js'));
		echo $this->Html->script(array('wysiwyg/jquery.wysiwyg.js', 'wysiwyg/wysiwyg.image.js', 'wysiwyg/wysiwyg.link.js', 'wysiwyg/wysiwyg.link.js', 'wysiwyg/wysiwyg.table.js'));
		echo $this->Html->script(array('flot/jquery.flot.js', 'flot/jquery.flot.pie.js', 'flot/excanvas.min.js', 'flot/jquery.flot.resize.js'));
		echo $this->Html->script(array('dataTables/jquery.dataTables.js', 'dataTables/colResizable.min.js'));
		echo $this->Html->script(array('forms/forms.js', 'forms/autogrowtextarea.js', 'forms/autotab.js', 'forms/jquery.validate.min.js', 'forms/jquery.dualListBox.js', 'forms/jquery.filestyle.js'));
		echo $this->Html->script(array('colorPicker/colorpicker.js'));
		echo $this->Html->script(array('uploader/plupload.js', 'uploader/plupload.html5.js', 'uploader/plupload.html4.js', 'uploader/jquery.plupload.queue.js'));
		echo $this->Html->script(array('ui/progress.js', 'ui/jquery.jgrowl.js', 'ui/jquery.tipsy.js', 'ui/jquery.alerts.js'));
		echo $this->Html->script(array('jBreadCrumb.1.1.js', 'cal.min.js', 'jquery.smartWizard.min.js', 'jquery.collapsible.min.js', 'jquery.ToTop.js', 'jquery.listnav.js', 'jquery.sourcerer.js', 'jquery.timeentry.min.js', 'jquery.prettyPhoto.js'));
		echo $this->Html->script(array('custom.js'));
		echo $scripts_for_layout;
	?>
</head>
<body>

<div id="topNav">
    <div class="fixed">
        <div class="wrapper">
            <div class="welcome"><?php echo $this->Html->link( 
						$this->Html->image("/images/userPic.png"), 
						array('controller' => 'users', 'action' => 'profile'), 
						array('escape' => false)
					); ?><span>Howdy, <?php echo $this->Session->read('Auth.User.name'); ?>!</span></div>
            <div class="userNav">
                <ul>
					<li><?php echo $this->Html->link( 
						$this->Html->image("/images/icons/topnav/profile.png") . '<span>Profile</span>', 
						array('controller' => 'users', 'action' => 'profile'), 
						array('escape' => false)
					); ?></li>
					<li><?php echo $this->Html->link( 
						$this->Html->image("/images/icons/topnav/tasks.png") . '<span>Tasks</span>', 
						array('controller' => 'tasks', 'action' => 'index'), 
						array('escape' => false)
					); ?></li>	
					<li><?php echo $this->Html->link( 
						$this->Html->image("/images/icons/topnav/messages.png") . '<span>Messages</span>', 
						array('controller' => 'messages', 'action' => 'index'), 
						array('escape' => false)
					); ?>
						<ul class="menu_body">
                            <li><a href="#" title="">new message</a></li>
                            <li><a href="#" title="">inbox</a></li>
                            <li><a href="#" title="">outbox</a></li>
                            <li><a href="#" title="">trash</a></li>
                        </ul>
					</li>							
					<li><?php echo $this->Html->link( 
						$this->Html->image("/images/icons/topnav/logout.png") . '<span>Logout</span>', 
						array('controller' => 'users', 'action' => 'logout'), 
						array('escape' => false)
					); ?></li>				
                </ul>
            </div>
            <div class="fix"></div>
        </div>
    </div>
</div>

<div id="header" class="wrapper">
	<div class="logo">
	<?php echo $this->Html->link( 
			$this->Html->image("/images/loginLogo.png"), 
			'/', 
			array('escape' => false)
	); ?>
	</div>
	
	<?php echo $this->Session->flash('flash', array('element' => 'flash')); ?>
	
    <div class="fix"></div>
</div>
<div class="wrapper">


	
    <div class="leftNav">
    	<ul id="menu">
        	<li class="dash"><a href="index.html" title=""><span>Dashboard</span></a></li>
            <li class="graphs"><a href="charts.html" title=""><span>Graphs and charts</span></a></li>
            <li class="forms"><a href="form_elements.html" title=""><span>Form elements</span></a></li>
            <li class="login"><a href="ui_elements.html" title=""><span>Interface elements</span></a></li>
            <li class="typo"><a href="typo.html" title=""><span>Typography</span></a></li>
            <li class="tables"><a href="tables.html" title=""><span>Tables</span></a></li>
            <li class="cal"><a href="calendar.html" title=""><span>Calendar</span></a></li>
            <li class="gallery"><a href="gallery.html" title="" class="active"><span>Gallery</span></a></li>
            <li class="widgets"><a href="widgets.html" title=""><span>Widgets</span></a></li>
            <li class="files"><a href="file_manager.html" title=""><span>File manager</span></a></li>
            <li class="errors"><a href="#" title="" class="exp"><span>Error pages</span><span class="numberLeft">6</span></a>
            	<ul class="sub">
                    <li><a href="403.html" title="">403 page</a></li>
                    <li><a href="404.html" title="">404 page</a></li>
                    <li><a href="405.html" title="">405 page</a></li>
                    <li><a href="500.html" title="">500 page</a></li>
                    <li><a href="503.html" title="">503 page</a></li>
                    <li class="last"><a href="offline.html" title="">Website is offline</a></li>
                </ul>
            </li>
            <li class="pic"><a href="icons.html" title=""><span>Buttons and icons</span></a></li>
            <li class="contacts"><a href="contacts.html" title=""><span>Organized contact list</span></a></li>
        </ul>
    </div>
    <?php echo $content_for_layout; ?>
    <div class="fix"></div>
</div>
<div id="footer">
	<div class="wrapper">
    	<span>&copy; Copyright StudentTotaal.nl 2012. All rights reserved.</span>
    </div>
</div>

</body>
</html>
